package com.ccnf.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author developer
 * @since 2018-06-11
 */
@TableName("star_record")
@Data
public class StarRecord extends Model<StarRecord> {
    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @ApiModelProperty(hidden = true)
    @TableId("record_id")
    private Long recordId;

    @ApiModelProperty("关注类型（0:客户,1:参展商）")
    @TableField("star_type")
    private Integer starType;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 关注的用户ID
     */
    @TableField("star_user_id")
    private Long starUserId;
    /**
     * 是否关注（0：否，1：是）
     */
    @TableField("is_star")
    private Integer isStar;
    /**
     * 关注时间
     */
    @ApiModelProperty(hidden = true)
    @TableField("star_time")
    private Long starTime;

    @Override
    protected Serializable pkVal() {
        return this.recordId;
    }
}